package com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.login.adapterv2;

import com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.login.adapterv2.adapters.EmailLoginDector;

/**
 * Created by Tom.
 */
public class Test {
    public static void main(String[] args) {
        IPassportForThird adapter = new PassportForThirdAdapter();
        adapter.loginForQQ("sdfasdfasfasfas");
        adapter = new EmailLoginDector(adapter);
        adapter = new EmailLoginDector(adapter);
        ((EmailLoginDector) adapter).loginByEmail("787455069@qq.com");
    }
}
